import request from '@/utils/request'

// 发表评论
export function postComment(data) {
  return request({
    url: '/cms/comment/post',
    method: 'post',
    data
  })
}

// 获取评论列表
export function getCommentList(data) {
  return request({
    url: '/cms/comment/index',
    method: 'post',
    data
  })
}

// 获取我的评论
export function getMyComment(params) {
  return request({
    url: '/cms/my/comment',
    method: 'get',
    params
  })
}